package com.example.sharding.demo.model;

import lombok.Data;

import java.util.Date;

@Data
public class BaseEntity<T> {

    private BaseEntity() {

    }

    public BaseEntity(T entity) {
        this.entity = entity;
    }

    public BaseEntity(Date queryStartTime, Date createTimeEnd) {
        this.queryStartTime = queryStartTime;
        this.queryEndTime = queryEndTime;
    }

    private T entity;
    private Date queryStartTime;
    private Date queryEndTime;

}